package org.streets.database;
/**
 * 
 * @author dzb
 *
 */
public interface SQLTransaction {
	/**
	 * 获取事务当前状态
	 * @return
	 */
	public abstract int getState();

	/**
	 * Rollback the transaction.
	 */
	public abstract void rollback();

	/**
	 * Commit the transaction, or rollback the transaction if state = -1.
	 */
	public abstract void commit();

}